home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / bin / start-pulseaudio-x11 < prev    next >
Encoding:
Text File  |  2009-07-14  |  1.0 KB  |  32 lines

  1. #!/bin/sh
  2.  
  3. # This file is part of PulseAudio.
  4. #
  5. # PulseAudio is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU Lesser General Public License as published by
  7. # the Free Software Foundation; either version 2 of the License, or
  8. # (at your option) any later version.
  9. #
  10. # PulseAudio is distributed in the hope that it will be useful, but
  11. # WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. # General Public License for more details.
  14. #
  15. # You should have received a copy of the GNU Lesser General Public License
  16. # along with PulseAudio; if not, write to the Free Software
  17. # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
  18. # USA.
  19.  
  20. set -e
  21.  
  22. /usr/bin/pulseaudio --start "$@"
  23.  
  24. if [ x"$DISPLAY" != x ] ; then
  25.  
  26.     /usr/bin/pactl load-module module-x11-publish "display=$DISPLAY" > /dev/null
  27.  
  28.     if [ x"$SESSION_MANAGER" != x ] ; then
  29.     /usr/bin/pactl load-module module-x11-xsmp "display=$DISPLAY session_manager=$SESSION_MANAGER" > /dev/null
  30.     fi
  31. fi
  32.